/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.base.domain.req;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

import com.xy.lang.validation.annotation.AlertMessage;

import java.util.Collection;

/**
 *
 *
 * @author zsp
 * @date 2020-8-26
 */
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
public class ListRegionRequest {

    @NotNull(message = "pageIndexRequired")
    @AlertMessage(code = "pageIndexRequired", msg = "页索引不能为空")
    private Integer pageIndex;

    @NotNull(message = "pageSizeRequired")
    @AlertMessage(code = "pageSizeRequired", msg = "页大小不能为空")
    private Integer pageSize;

    @NotNull(message = "parentRegionIdRequired")
    @AlertMessage(code = "parentRegionIdRequired", msg = "上级行政区划Id不能为空")
    private Long parentRegionId;

    /**
     * region名称集合
     */
    private Collection<String> regionNameCollection;
}
